/**
 * 搜索模块数据请求
 */
import request from '@/utils/request'

/**
 * 获取搜索建议
 * @param {*} q 
 */
export const getSearchSuggestion =  q =>{
  return request({
    url:'/v1_0/suggestion',
    method:'GET',
    params:{
      q
    }
  })
}

/**
 * 获取搜索结果
 */
export function getSearch(params) {
  return request({
    method: "GET",
    url: "/v1_0/search",
    params
  })
}